<h1>Thông tin cá nhân</h1>

<?php echo $this->Form->create('User', array('action' => 'profile')); ?>
<?php echo $this->Form->input('User.id', array('type' => 'hidden')); ?>
<?php echo $this->Form->input('User.username', array('type' => 'hidden')); ?>
<?php echo $this->Form->input('User.role', array('type' => 'hidden')); ?>
<?php echo $this->Form->input('User.action', array('type' => 'hidden', 'value' => 'edit_profile')); ?>
<table class="table2">
    <tr>
        <td>Họ tên</td>
        <td><?php echo $this->Form->input('User.fullname', array('type' => 'text', 'class' => 'textfield', 'label' => false)); ?></td>
    </tr>
    <tr>
        <td>Email</td>
        <td><?php echo $this->Form->input('User.email', array('type' => 'text', 'class' => 'textfield', 'label' => false)); ?></td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>
            <?php echo $this->Form->submit('Lưu', array('class' => 'button')); ?>
        </td>
    </tr>
</table>
<?php echo $this->Form->end(); ?>

<h1>Đổi mật mã</h1>

<?php echo $this->Form->create('User', array('action' => 'profile')); ?>
<?php echo $this->Form->input('User.id', array('type' => 'hidden')); ?>
<?php echo $this->Form->input('User.username', array('type' => 'hidden')); ?>
<?php echo $this->Form->input('User.role', array('type' => 'hidden')); ?>
<?php echo $this->Form->input('User.fullname', array('type' => 'hidden')); ?>
<?php echo $this->Form->input('User.email', array('type' => 'hidden')); ?>
<?php echo $this->Form->input('User.action', array('type' => 'hidden', 'value' => 'change_password')); ?>
<table class="table2">
    <tr>
        <td>Mật mã hiện tại <span class="compulsory">*</span></td>
        <td><?php echo $this->Form->input('User.current_password', array('type' => 'password', 'class' => 'textfield', 'label' => false)); ?></td>
    </tr>
    <tr>
        <td>Mật mã mới <span class="compulsory">*</span></td>
        <td><?php echo $this->Form->input('User.tmp_password', array('type' => 'password', 'class' => 'textfield', 'label' => false)); ?></td>
    </tr>
    <tr>
        <td>Xác nhận mật mã <span class="compulsory">*</span></td>
        <td><?php echo $this->Form->input('User.password_confirm', array('type' => 'password', 'class' => 'textfield', 'label' => false)); ?></td>
    </tr>

    <tr>
        <td>&nbsp;</td>
        <td>
            <?php echo $this->Form->submit('Đổi mật mã', array('class' => 'button')); ?>
        </td>
    </tr>
</table>
<?php echo $this->Form->end(); ?>